import request from '@/utils/request'

export function getList(data, params) {
  return request({
    url: '/blog/type/list',
    method: 'post',
    data,
    params
  })
}

export function getAllTypeList() {
  return request({
    url: '/blog/type/getAllTypeList',
    method: 'post',
    data: undefined
  })
}

export function saveType(data) {
  return request({
    url: '/blog/type/save',
    method: 'post',
    data
  })
}

export function deleteType(data) {
  return request({
    url: '/blog/type/delete',
    method: 'post',
    data
  })
}
